package com.hut.oa.model.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import net.minidev.json.annotate.JsonIgnore;

/**
 * 反馈评价表
 * @author 熊涛
 *
 */
@Entity
@Table(name="task_feedback")
public class TaskFeedback {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="tf_id")
	private Long tfId;//反馈评价表id
	
	@Column(name="tf_content",nullable=false)
	private String tfContent;//反馈内容
	
	@Column(name="tf_time",nullable=false)
	private Date tfTime;//反馈时间
	
	@ManyToOne()
	@JsonIgnore
	@JoinColumn(name="tf_user_id",nullable=false)	
	private User user;//修改人id
	
	@ManyToOne()
	@JsonIgnore
	@JoinColumn(name="tf_task_id",nullable=false)
	private TaskManage task;//任务id
	
	@Column(name="att_id")
	private Long attid;//附件id
	
	@Column(name="tf_type")
	private Long status;//任务状态
	
	public TaskFeedback() {}

	public Long getTfId() {
		return tfId;
	}

	public void setTfId(Long tfId) {
		this.tfId = tfId;
	}

	public String getTfContent() {
		return tfContent;
	}

	public void setTfContent(String tfContent) {
		this.tfContent = tfContent;
	}

	public Date getTfTime() {
		return tfTime;
	}

	public void setTfTime(Date tfTime) {
		this.tfTime = tfTime;
	}

	

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public TaskManage getTask() {
		return task;
	}

	public void setTask(TaskManage task) {
		this.task = task;
	}

	public Long getAttid() {
		return attid;
	}

	public void setAttid(Long attid) {
		this.attid = attid;
	}

	

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "TaskFeedback [tfId=" + tfId + ", tfContent=" + tfContent + ", tfTime=" + tfTime + ", attid=" + attid
				+ ", status=" + status + "]";
	}

	
}
